/*
 * Copyright 2010 JooKar (info@jookar.nl)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package nl.jookar.gcodecommithook.model;

import java.util.LinkedList;

/**
 * TODO: Write type comment
 * 
 * @author Joost A. Bloemsma
 */
public class Revision {
	private int revision;
	private String url;
	private String author;
	private long timestamp;
	private String message;
	private int path_count;
	private LinkedList<String> added = new LinkedList<String>();
	private LinkedList<String> modified = new LinkedList<String>();
	private LinkedList<String> removed = new LinkedList<String>();
	/**
	 * @return the revision
	 */
	public int getRevision() {
		return revision;
	}
	/**
	 * @param revision the revision to set
	 */
	public void setRevision(int revision) {
		this.revision = revision;
	}
	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}
	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	/**
	 * @return the author
	 */
	public String getAuthor() {
		return author;
	}
	/**
	 * @param author the author to set
	 */
	public void setAuthor(String author) {
		this.author = author;
	}
	/**
	 * @return the timestamp
	 */
	public long getTimestamp() {
		return timestamp;
	}
	/**
	 * @param timestamp the timestamp to set
	 */
	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}
	/**
	 * @return the message
	 */
	public String getMessage() {
		return message;
	}
	/**
	 * @param message the message to set
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	/**
	 * @return the path_count
	 */
	public int getPathCount() {
		return path_count;
	}
	/**
	 * @param path_count the path_count to set
	 */
	public void setPathCount(int path_count) {
		this.path_count = path_count;
	}
	/**
	 * @return the added
	 */
	public LinkedList<String> getAdded() {
		return added;
	}
	/**
	 * @param added the added to set
	 */
	public void setAdded(LinkedList<String> added) {
		this.added = added;
	}
	public void addAdded(String added) {
		this.added.add(added);
	}
	
	/**
	 * @return the modified
	 */
	public LinkedList<String> getModified() {
		return modified;
	}
	/**
	 * @param modified the modified to set
	 */
	public void setModified(LinkedList<String> modified) {
		this.modified = modified;
	}
	public void addModified(String modified) {
		this.modified.add(modified);
	}
	
	/**
	 * @return the removed
	 */
	public LinkedList<String> getRemoved() {
		return removed;
	}
	/**
	 * @param removed the removed to set
	 */
	public void setRemoved(LinkedList<String> removed) {
		this.removed = removed;
	}
	
	public void addRemoved(String removed) {
		this.removed.add(removed);
	}
}

